import request from '@/utils/request'
import data from "@/views/system/dict/data.vue";

export function listTake(query){
  return request({
    url: '/order/take/list',
    method: 'get',
    params: query
  })
}

export function getTake(takeId){
  return request({
    url: '/order/take/' +takeId,
    method: 'get'
  })
}

export function addTake(data){
  return request({
    url: '/order/take',
    method: 'post',
    data: data
  })
}

export function updateTake(data){
  return request({
    url: '/order/take',
    method: 'put',
    data: data
  })
}

export function delTake(takeId){
  return request({
    url: '/order/take/' +takeId,
    method: 'delete'
  })
}

export function address(){
  return request({
    url: '/address/list',
    method: 'get'
  })
}
